package pers.mihao.quickstream.account.repository.convertor;

import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;
import pers.mihao.quickstream.account.model.dto.AccountDTO;
import pers.mihao.quickstream.account.model.dto.PlatformDTO;
import pers.mihao.quickstream.account.repository.domain.AccountDO;
import pers.mihao.quickstream.account.repository.domain.PlatformDO;
import pers.mihao.quickstream.common.model.convertor.BaseConvert;

/**
 * @author mihao
 * @since 2024/11/24
 */
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
public interface AccountConvertor extends BaseConvert {

    AccountDO map2AccountDO(AccountDTO accountDTO);

    AccountDTO map2AccountDTO(AccountDO accountDO);


    PlatformDTO map2PlatformDTO(PlatformDO platformDO);

    PlatformDO map2PlatformDO(PlatformDTO platformDTO);

}
